import { defineAmisPlugin, getBaseFormItem, getInputTpl } from '../../base/util';
import CommonHelp from './fc';
import type { IProps } from './interface';

export default defineAmisPlugin<IProps>(() => {
    return {
        component: CommonHelp,
        options: getBaseFormItem({
            type: 'common-help', order: -6999, name: '通用帮助', icon: 'FileSearchOutlined',xtype:'SingleHelp',
            valueLabel: true,
            tpls: [
                getInputTpl('helpId', { label: '帮助标识' }),
                getInputTpl('placeholder', { label: '提示文本' }),
                getInputTpl('multiple', { type: "switch", label: "多选" }),
                getInputTpl('modal', { type: "switch", label: "是否弹窗" }),
            ]
        })
    };
});
